package com.qys.livesMall.shop.modal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author
 * @since 2023-07-12
 */
@Getter
@Setter
@TableName("h2_shop_order_settlement_info")
@Schema(name = "ShopOrderSettlementInfo", description = "")
public class ShopOrderSettlementInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "店铺id")
    private Long shopId;

    @Schema(description = "订单id")
    private Long orderId;

    @Schema(description = "订单原总价")
    private BigDecimal totalAmount;

    @Schema(description = "订单实际金额")
    private BigDecimal totalActualAmount;

    @Schema(description = "订单成本")
    private BigDecimal totalCostAmount;

    @Schema(description = "总盈利")
    private BigDecimal totalProfit;

    @Schema(description = "店铺盈利")
    private BigDecimal shopProfit;

    @Schema(description = "店铺补贴收益")
    private BigDecimal shopSubsidyProfit;

    @Schema(description = "平台盈利")
    private BigDecimal platformProfit;

    @Schema(description = "主播盈利")
    private BigDecimal anchorProfit;

    @Schema(description = "上级盈利")
    private BigDecimal superiorProfit;

    @Schema(description = "上二级盈利")
    private String superiorProfitDetail;

    @Schema(description = "创建时间")
    private LocalDateTime createDate;

    @Schema(description = "状态")
    private Integer status;

    @Schema(description = "发放日")
    private LocalDateTime paymentDate;

    @Schema(description = "分成比例")
    private String paymentRate;

    @Schema(description = "是否退货款：1：退，0：不退")
    private Integer returnCost;

    @Schema(description = "主播用户id")
    private Long anchorUserId;

}
